import Home from '@/views/first/first.vue'
// import { useRoute } from 'vue-router'
// const route = useRoute()
export default [
  {
    path: '/',
    redirect: '/newroom'

  },
  // 首页
  {
    name: 'home',
    path: '/home',
    component: Home,
    meta: { title: '蜗牛找房', isNavShow: false }
  },
  // 新房
  {
    name: 'Newroom',
    path: '/newroom',
    component: () => import('@/views/NewRoom'),
    meta: { isHeader: true, title: '新房', isNavShow: false }
  },
  // 新房详情页
  {
    name: 'NRDetails',
    path: '/nrdetails',
    component: () => import('@/views/NewRoom/NRDetails'),
    meta: { isHeader: true, title: '新房详情页', isNavShow: false }
  },
  // 新房
  {
    name: 'Chart',
    path: '/chart',
    component: () => import('@/views/charts/charts.vue'),
    meta: { isHeader: true, title: '新房', isNavShow: false }
  }
]
